<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>

    <div class="outer">
        <div class="inner"></div>
    </div>
<script>
    const inner = document.querySelector(".inner")
    console.log(inner)
    console.log(inner.parentNode)
</script>
</body>
</html>